<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{gdsForm.bundleName}"/>
    <head>
        <title>#{text['gdsDetail.title']}</title>
        <meta name="heading" content="#{text['gdsDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="gdsForm">

<h:form id="gdsForm" onsubmit="return validateGdsForm(this)">
 <h:inputHidden value="#{gdsForm.gds.id}" id="id"/>
 <h:inputHidden value="#{gdsForm.gds.version}" id="version"/>
    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{gdsForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty gdsForm.gds.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{gdsForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Gds')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
<h:panelGrid columns="6">
    <h:outputLabel styleClass="desc" for="dsfkse" value="#{text['gds.dsfkse']}"/>
    <t:message for="dsfkse" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dsfkse" value="#{gdsForm.gds.dsfkse}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="dsznj" value="#{text['gds.dsznj']}"/>
    <t:message for="dsznj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dsznj" value="#{gdsForm.gds.dsznj}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gsfkse" value="#{text['gds.gsfkse']}"/>
    <t:message for="gsfkse" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gsfkse" value="#{gdsForm.gds.gsfkse}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gsznj" value="#{text['gds.gsznj']}"/>
    <t:message for="gsznj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gsznj" value="#{gdsForm.gds.gsznj}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="jndsse" value="#{text['gds.jndsse']}"/>
    <t:message for="jndsse" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jndsse" value="#{gdsForm.gds.jndsse}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="jngsse" value="#{text['gds.jngsse']}"/>
    <t:message for="jngsse" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jngsse" value="#{gdsForm.gds.jngsse}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ny" value="#{text['gds.ny']}"/>
    <t:message for="ny" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ny" value="#{gdsForm.gds.ny}" required="true" maxlength="255">
        <v:commonsValidator type="required" arg="#{text['gds.ny']}"/>
    </h:inputText>
    <!-- 
    <h:selectOneMenu value="#{gdsForm.gds.jbqk}" id="jbqk" required="false" styleClass="select">
        <f:selectItems value="#{gdsForm.gds.jbqk}"/>
    </h:selectOneMenu>
    <t:message for="id" styleClass="fieldError"/>
    <h:outputLabel styleClass="desc" for="id" value="#{text['gds.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{gdsForm.gds.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['gds.id']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['gds.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{gdsForm.gds.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['gds.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{gdsForm.gds.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['gds.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{gdsForm.gds.username}" required="false" maxlength="50">
    </h:inputText>
     -->

</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateGdsForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('gdsForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
